import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    singerList: [],
    people:[]
  },
  getters: {
  },
  mutations: {
    addSingerList(state, singer) {
      console.log(state,singer);
      state.singerList.push({
        id: state.singerList.length,
        name: singer
      })
    },
  },
  actions: {
  },
  modules: {
  }
})
